export class UaTypeService{

    public static get isIphoneX():boolean{
        return /iphone/gi.test(navigator.userAgent) && (screen.height == 812 && screen.width == 375);
    }


    public static get isIphone7P():boolean{
        return /iphone/gi.test(navigator.userAgent) && (screen.height == 736 && screen.width == 414);
    }
    public static get isIphone8P():boolean{
        return /iphone/gi.test(navigator.userAgent) && (screen.height == 736 && screen.width == 414);
    }
    public static get isIphone6P():boolean{
        return /iphone/gi.test(navigator.userAgent) && (screen.height == 736 && screen.width == 414);
    }


    public static get isIphone7():boolean{
        return /iphone/gi.test(navigator.userAgent) && (screen.height == 667 && screen.width == 375);
    }
    public static get isIphone8():boolean{
        return /iphone/gi.test(navigator.userAgent) && (screen.height == 667 && screen.width == 375);
    }
    public static get isIphone6():boolean{
        return /iphone/gi.test(navigator.userAgent) && (screen.height == 667 && screen.width == 375);
    }


    public static get isIphone5():boolean{
        return /iphone/gi.test(navigator.userAgent) && (screen.height == 568 && screen.width == 320);
    }


}
